package com.burst.reptile.modular.zp.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.burst.reptile.framework.aspectj.lang.annotation.Excel;
import com.burst.reptile.framework.aspectj.lang.annotation.Excel.ColumnType;
import com.burst.reptile.framework.web.entity.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 业态列表
 * </p>
 *
 * @author wujin
 * @since 2020-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("zp_format")
public class ZpFormat extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 业态ID
     */
    @TableId(value = "format_id", type = IdType.AUTO)
    @Excel(name = "业态编号", cellType = ColumnType.NUMERIC)
    private Integer formatId;

    /**
     * 父业态id
     */
    private Integer parentId;

    /**
     * 祖级列表
     */
    private String ancestors;

    /**
     * 业态名称
     */
    @NotBlank(message = "业态名称不能为空")
    @Size(min = 0, max = 15, message = "业态名称长度不能超过15个字符")
    @Excel(name = "业态名称")
    private String formatName;
    
    /**
     * 删除标志（0逻辑未删除值 1逻辑已删除值）
     */
    @TableLogic
    private String delFlag;


}
